home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / heddley / rexx / hedd_empty.rexx < prev    next >
OS/2 REXX Batch file  |  1999-01-01  |  974b  |  21 lines

  1. /* .rexx                                                        */
  2.  
  3. OPTIONS RESULTS                             /* enable return codes      */
  4.  
  5. OPTIONS FAILAT 6                            /* ignore warnings          */
  6. SIGNAL ON SYNTAX                            /* ensure clean exit        */
  7. SIGNAL ON FAILURE                           /* trap Heddley errors      */
  8.  
  9.  
  10. EXIT                                        /* quit this macro          */
  11.  
  12. SYNTAX:                                     /* ARexx error...           */
  13.  
  14. SAY "Sorry, error line" SIGL ":" ERRORTEXT(RC) /* report it...          */
  15. EXIT                                        /* exit                     */
  16.  
  17. FAILURE:                                    /* Heddley error...         */
  18. ERRV=address().LASTERROR                    /* get name of error var.   */
  19. SAY "Error:" VALUE(ERRV)                    /* report the error         */
  20. EXIT                                        /* exit                     */
  21.